﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Modelos
{
    [Table("Usuario")]
    public class Usuario
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required(ErrorMessage = "Debe Ingresar un Nombre de Usuario")]
        [Display(Name = "Nombre Usuario: ")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "Debe Ingresar un Nombre Valido")]
        [Display(Name = "Primer Nombre: ")]
        public string RealName { get; set; }

        [Required(ErrorMessage = "Debe Ingresar una Direccion de Email Valida")]
        [Display(Name = "Email: ")]
        public string Mail { get; set; }

        [Required]
        [Display(Name="Empresa: ")]
        public int IdEmpresa { get; set; }
    }
}